<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>新闻动态</title>
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="format-detection" content="telephone=no, email=no"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="fonts/iconfont.css">
    <link rel="stylesheet" href="css/new.css">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<script src="js/head.js"></script>

<div class="list">
    <div class='row' id="news">
    </div>
</div>

<script src="js/footer.js"></script>


<script>
    $(function () {
        $.ajax({
            url: "http://xcx.ec51.com:9039/outp.php",
            type: "get",
            data: {
                "id":""
            },
            dataType: "json",
            success: function (data) {
                var html = "";
                for (var i = 0; i < data.data.length; i++) {
                    var ls = data.data[i];
                    var content = ls.content.replace(/<[^>]+>/g,"")
                    html += "<div class='col-xs-6'><div class='new-item'><a href='new-detail.html?id=" + ls.id + "' title='" + ls.title + "'><div class='new-img'><img src='" + ls.logo + "' alt='" + ls.title + "'></div><h2 class='new-title'>" + ls.title + "</h2><p class='new-desc'>"+content+"</p><div class='new-date'>" + ls.created_at + "</div></a></div></div> ";
                }
                $("#news").html(html);
            },
            error:function (e) {
                console.log(e)
            }
        })
    });
</script>
</body>
</html>